import ApiConfigDto from '@/core/framework/config/types/model/ApiConfigDto'

const oauth2ApiConfig = {
	// password 登录接口配置
	getTokenByPasswordGrantType: {
		uri: '/oauth2/token?grant_type=password',
		method: 'post',
		mockUri: '/mock/oauth2/token',
		mock: undefined,
	} as ApiConfigDto,
	// client_credentials 登录接口配置
	getTokenByClientGrantType: {
		uri: '/oauth2/token',
		method: 'post',
		mockUri: '/mock/oauth2/token/getTokenByClientGrantType',
		mock: undefined,
	} as ApiConfigDto,
	// oauth2 introspect 接口配置
	oauth2IntrospectApi: {
		uri: '/oauth2/introspect',
		method: 'post',
		mockUri: '/mock/oauth2/introspect',
		mock: undefined,
	} as ApiConfigDto,
	// oauth2 revoke 接口配置
	oauth2RevokeApi: {
		uri: '/oauth2/revoke',
		method: 'post',
		mockUri: '/mock/oauth2/revoke',
		mock: undefined,
	} as ApiConfigDto,
}

export default oauth2ApiConfig
